Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / C1PromptBox Class / Show Method / Show(String,String,String,Action<String,MessageBoxResult>) Method
The text to display as a message.
The title bar caption.
The default value of content.
An Action which is called with the user input.

In This Topic
    Show(String,String,String,Action<String,MessageBoxResult>) Method
    In This Topic
    Displays a prompt box that has a message, title bar caption, content with a default value, and calls back with the user input.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub Show( _
       ByVal message As String, _
       ByVal caption As String, _
       ByVal defaultValue As String, _
       ByVal callback As Action(Of String,MessageBoxResult) _
    ) 

    Parameters

    message
    The text to display as a message.
    caption
    The title bar caption.
    defaultValue
    The default value of content.
    callback
    An Action which is called with the user input.
    See Also